Skip to main content
Version: 8.6.9.2

SRAllocationNotice

V8 Message Definiton

METADATA​

AttributeValue
Topic3695-order-allocation
MLink TokenClientTrading
ProductSRTrade
accessTypeSELECT
MLink EndpointMLink-Live

Table Definition​

FieldTypeKeyDefault ValueComment
allocNumberBIGINTPRI0unique number assigned to this allocation notice
tradeDateDATE'1900-01-01'
omniAccntVARCHAR(16)''omnibus accnt SR accnt
omniCFirmVARCHAR(16)''omni SR client firm
secKey_atenum - AssetType'None'security key stock future or option
secKey_tsenum - TickerSrc'None'security key stock future or option
secKey_tkVARCHAR(12)''security key stock future or option
secKey_yrSMALLINT UNSIGNED0security key stock future or option
secKey_mnTINYINT UNSIGNED0security key stock future or option
secKey_dyTINYINT UNSIGNED0security key stock future or option
secKey_xxDOUBLE0security key stock future or option
secKey_cpenum - CallPut'Call'security key stock future or option
secTypeenum - SpdrKeyType'None'security type
mlegLegKeyTINYTEXT''secKeyStringKeylegRatiosidepositionEffect secKeyStringKeylegRatiosidepositionEffect
orderSideenum - BuySell'None'order side always buy for MLEG orders
ssaleFlagenum - ShortSaleFlag'None'ssale flag None if not stock
positionTypeenum - PositionType'None'positionType None if not equity option
noticeStateenum - NoticeState'None'PendNew first allocation InOut pair arrived child order not yet fully allocated republished New when fully allocated triggers delivery BustAmend corrections
noticeTextTINYTEXT''
allocMethodenum - AllocMethod'None'method for delivery of the allocation instruction to the broker
execBrkrCodeVARCHAR(16)''used for FIX routing can be null
allocExDestVARCHAR(16)''used for FIX routing
orderShapeenum - SpdrOrderShape'None'Single or MLeg
cumFillQuantityINT0child order fill size
avgFillPriceDOUBLE0parent order average fill price
netMoneyDOUBLE0net allocation money
clOrdIdCHAR(19)'0000-0000-0000-0000'
orderSizeINT0
baseParentNumberCHAR(19)'0000-0000-0000-0000'omnibus parent order behind this child
streetClOrdIdVARCHAR(24)''usually clOrdIDX16 but can be different if street gateway was translating clOrdId
streetOrderIdVARCHAR(24)''street side order ID for canceling order
modifiedByVARCHAR(24)''user who last modified this record
modifiedInenum - SysEnvironment'None'
timestampDATETIME(6)'1900-01-01 00:00:00.000000'timestamp of last modification
ExecsListJSON'JSON_ARRAY()'
FragmentsListJSON'JSON_ARRAY()'
LegPosTypeListJSON'JSON_ARRAY()'
OrderLegsListJSON'JSON_ARRAY()'

PRIMARY KEY DEFINITION (Unique)​

FieldSequence
allocNumber1

JSON Block (ExecsList)​

FieldTypeComment
fillNumberenum - fillNumberSpdrParentExecution backing this notice
allocFragIdenum - allocFragIdthe Fragments row it fed
execQtyenum - execQtyquantity from this fill to that fragment fill scale
execPrcenum - execPrcthe fills own price the notice itself reports avgFillPrice

JSON Block (FragmentsList)​

FieldTypeComment
fragAccntenum - fragAccntSR alloc accnt
fragCFirmenum - fragCFirmSR client firm
allocAccntenum - allocAccntclearing firm alloc accnt maps to FixAllocAccount
allocFragIdenum - allocFragIdunique ID of this allocfragment maps to FixIndividualAllocID
allocSizeenum - allocSizeaccnt alloc size

JSON Block (LegPosTypeList)​

FieldTypeComment
secKeyenum - secKey
secTypeenum - SpdrKeyType
accntenum - accntSR alloc accnt matches fragment
clientFirmenum - clientFirmSR client firm
ssaleFlagenum - ShortSaleFlagssale flag if secType Stock
positionTypeenum - PositionTypepositionType if secType Stock
firmPositionenum - firmPosition

JSON Block (OrderLegsList)​

FieldTypeComment
secKeyenum - secKey
secTypeenum - SpdrKeyType
multenum - mult
sideenum - BuySell
legIdenum - legIdSR leg Id
altLegIdenum - altLegIdclient leg Id usually from a FIX order
sumLegQtyenum - sumLegQty
sumLegMnyenum - sumLegMny

SELECT TABLE EXAMPLE QUERY​

SELECT *
FROM `SRTrade`.`MsgSRAllocationNotice`
WHERE
/* Replace with a BIGINT */
`allocNumber` = 1234567890;

Doc Columns Query​

SELECT * FROM SRTrade.doccolumns WHERE TABLE_NAME='SRAllocationNotice' ORDER BY ordinal_position ASC;